import request from '@/utils/request'

// 查询id_11   -24  药物相互作用列表
export function listTdmYaoWuXiangHu(query) {
  return request({
    url: '/tdmdata/TdmYaoWuXiangHu/list',
    method: 'get',
    params: query
  })
}

// 查询id_11   -24  药物相互作用详细
export function getTdmYaoWuXiangHu(id) {
  return request({
    url: '/tdmdata/TdmYaoWuXiangHu/' + id,
    method: 'get'
  })
}

// 新增id_11   -24  药物相互作用
export function addTdmYaoWuXiangHu(data) {
  return request({
    url: '/tdmdata/TdmYaoWuXiangHu',
    method: 'post',
    data: data
  })
}

// 修改id_11   -24  药物相互作用
export function updateTdmYaoWuXiangHu(data) {
  return request({
    url: '/tdmdata/TdmYaoWuXiangHu',
    method: 'put',
    data: data
  })
}

// 删除id_11   -24  药物相互作用
export function delTdmYaoWuXiangHu(id) {
  return request({
    url: '/tdmdata/TdmYaoWuXiangHu/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
